import 'package:boss/textStyle/text_style.dart';
import 'package:boss/ui/widget/center_title_app_bar.dart';
import 'package:boss/ui/widget/form/title_switch.dart';
import 'package:flutter/material.dart';
import 'package:hi_common/hi_common.dart';
import 'package:router/annotation.dart';

@RouterConfig(MiniProgramMemberConfigPage.pageName)
class MiniProgramMemberConfigPage extends StatefulWidget {
  static const pageName = '/MiniProgramMemberConfigPage';

  @override
  _MiniProgramMemberConfigPageState createState() => _MiniProgramMemberConfigPageState();
}

class _MiniProgramMemberConfigPageState extends BaseState<MiniProgramMemberConfigPage> {
  _MiniProgramMemberConfigPageState() : super(MiniProgramMemberConfigPage.pageName);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CenterTitleAppBar(title: '会员设置'),
      body: Container(
        padding: EdgeInsets.symmetric(horizontal: 30.w),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            TitleSwitch(title: '扫码点餐展示会员模块', value: true),
            TitleSwitch(title: '允许顾客在点餐页注册成为会员', value: true),
            Container(
              margin: EdgeInsets.only(top: 10.w),
              child: Text(
                '当前会员默认享受"菜品会员价折扣"',
                style: TextStyleConstant().normal_4_24,
              ),
            ),
          ],
        ),
      ),
    );
  }
}
